package com.bhsy.hellobootspring;

import com.bhsy.hellobootspring.controller.LoginController;
import com.bhsy.hellobootspring.controller.UserController;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

@MapperScan(basePackages = "com.bhsy.hellobootspring.dao")
@SpringBootApplication
@Import({SpringContextUtil.class})
public class Application
{
    public static void main(String[] args)
      {
        SpringApplication.run(Application.class);
      }
    @Bean(name = "w1")
    public UserController addUserController()
      {
        return new UserController();
      }
    @Bean(name = "login")
    public LoginController addLoginController()
      {
        return new LoginController();
      }
}